package httputil.http;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Author: yjj
 * @Date: 2025/7/30 17:54
 */
public class Demo {
    public static void main(String[] args) throws IOException {
        Http http = new Http();
        Map<String, String> params = new HashMap<String, String>();
        params.put("pageSize", "1");
        params.put("pageNumber", "1");
        Map<String, String> herders = new HashMap<String, String>();
        herders.put("access_token", "9336f0d0-e951-444c-a4f5-c79bc18f8a91-123078");
        Response response = http.get("https://172.25.5.222:31090/resource/v1/servers", params, herders);
        String content = response.getContent();
        System.out.println(content);
    }
}
